<?php


class Involved_ExperScaleModel extends BaseModel{

    protected $table = 'exper_scale';


    public function ExperRecordOne($user_id)
    {
        return DB::table($this->table)
            ->where(['exper_scale.user_id'=>$user_id,'exper_scale.statue'=>'0'])
            ->count();
    }

    public function ExperRecord($user_id)
    {
        return DB::table($this->table)
            ->where(['exper_scale.user_id'=>$user_id,'exper_scale.statue'=>'0'])
            ->first ();
    }

}